package com.cdu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cdu.model.common.BaseResponse;
import com.cdu.model.query.TaskQuery;
import com.cdu.pojo.Task;
import net.sf.json.JSONObject;

import java.text.ParseException;

public interface TaskService extends IService<Task> {
    BaseResponse queryAllTask(TaskQuery taskQuery);

    BaseResponse queryTaskById(TaskQuery taskQuery);

    BaseResponse createTask(JSONObject ido) throws ParseException;

    BaseResponse updateTask(JSONObject ido) throws ParseException;

    BaseResponse acceptTask(JSONObject ido);

    BaseResponse dealTask(JSONObject ido);

    BaseResponse delTaskById(TaskQuery taskQuery);
}
